body {
    font-family: sans-serif;
    margin: 20px;
}

.connection-controls, .message-controls {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"], textarea {
    width: 95%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

textarea {
    height: 60px;
    resize: vertical;
}

button {
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

h2 {
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

#log-area {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 10px;
    height: 300px;
    overflow-y: scroll;
    white-space: pre-wrap; /* Allows wrapping */
    word-wrap: break-word; /* Ensures long words break */
} 